/**
 * Copyright &copy; 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.z100h.supplychain.supplier.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.jeeplus.core.persistence.DataEntity;
import com.jeeplus.common.utils.excel.annotation.ExcelField;

import java.util.Date;

/**
 * 供应商合同Entity
 * @author madara
 * @version 2018-09-20
 */
public class Contract extends DataEntity<Contract> {

	private static final long serialVersionUID = 1L;

	private String supplierId; // 供应商id

	private Date startDate; // 合同开始时间

	private Date endDate; // 合同结束时间

	private String payMethod; // 付款方式

	private String isRenew; // 是否续签

	private String accountPeriod; // 账期期限

	private String acceptancePeriod; // 承兑期限

	private String contractName;


	private String supplierName;

	public String getSupplierName() {
		return supplierName;
	}

	public void setSupplierName(String supplierName) {
		this.supplierName = supplierName;
	}


	public String getContractName() {
		return contractName;
	}

	public void setContractName(String contractName) {
		this.contractName = contractName;
	}

	public Contract() {
		super();
		this.setIdType(IDTYPE_AUTO);
	}

	public Contract(String id) {
		super(id);
	}

	@Override
	@ExcelField(title = "部门id", align = 2, sort = 7)
	public String getDepartmentId() {
		return departmentId;
	}

	@Override
	public void setDepartmentId(String departmentId) {
		this.departmentId = departmentId;
	}

	@Override
	@ExcelField(title = "公司id", align = 2, sort = 8)
	public String getCompanyId() {
		return companyId;
	}

	@Override
	public void setCompanyId(String companyId) {
		this.companyId = companyId;
	}

	@Override
	@ExcelField(title = "岗位id", align = 2, sort = 9)
	public String getStationId() {
		return stationId;
	}

	@Override
	public void setStationId(String stationId) {
		this.stationId = stationId;
	}

	@ExcelField(title = "供应商id", align = 2, sort = 10)
	public String getSupplierId() {
		return supplierId;
	}

	public void setSupplierId(String supplierId) {
		this.supplierId = supplierId;
	}

	@JsonFormat(pattern = "yyyy-MM-dd")
	public Date getStartDate() {
		return startDate;
	}

	public void setStartDate(Date startDate) {
		this.startDate = startDate;
	}

	@JsonFormat(pattern = "yyyy-MM-dd")
	public Date getEndDate() {
		return endDate;
	}

	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}

	@ExcelField(title = "付款方式", dictType = "sc_pay_method", align = 2, sort = 13)
	public String getPayMethod() {
		return payMethod;
	}

	public void setPayMethod(String payMethod) {
		this.payMethod = payMethod;
	}

	@ExcelField(title = "是否续签", align = 2, sort = 14)
	public String getIsRenew() {
		return isRenew;
	}

	public void setIsRenew(String isRenew) {
		this.isRenew = isRenew;
	}

	@ExcelField(title = " 账期期限", align = 2, sort = 15)
	public String getAccountPeriod() {
		return accountPeriod;
	}

	public void setAccountPeriod(String accountPeriod) {
		this.accountPeriod = accountPeriod;
	}

	@ExcelField(title = "承兑期限", align = 2, sort = 16)
	public String getAcceptancePeriod() {
		return acceptancePeriod;
	}

	public void setAcceptancePeriod(String acceptancePeriod) {
		this.acceptancePeriod = acceptancePeriod;
	}

}